<html>
<head>
<meta charset="utf-8">
<title>base64</title>
<script type="text/javascript" src="base64.js"></script>
<script type="text/javascript">  
		 window.onload=function(){
        var b = new Base64();  
        var str = b.encode("http://www.baidu.com");  
        alert("base64 encode:" + str);  
        str = b.decode(str);  
        alert("base64 decode:" + str);  
      }
</script>  
</head>

<body>
</body>
</html>